<template>
  <el-dialog :title="title" :close-on-click-modal="false" :fullscreen="true" :visible.sync="visible"
    :before-close="cancel" class="JNPF-dialog JNPF-dialog_center" lock-scroll width="50%">

    <div class="block">
    <el-timeline>
    <el-timeline-item timestamp="投诉信息" placement="top">
      <el-card>
      <el-row class="JNPF-common-search-box" :gutter="16">
      <el-form @submit.native.prevent ref="elForm" :model="dataForm" :rules="rules">
        <el-col :span="8">
          <el-form-item label="投诉单号" prop="FBILLNO">
            <el-input v-model="dataForm.FBILLNO"  disabled />
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="投诉日期" prop="FBILLCREDATE">
            <el-date-picker v-model="dataForm.FBILLCREDATE" value-format="yyyy-MM-DD" type="date" placeholder="选择日期">
            </el-date-picker>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="学校名称" prop="FBILLSTATE">
            <el-input v-model="dataForm.FBILLSTATE"   disabled/>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="研学课程" prop="FCATNAME">
            <el-input v-model="dataForm.FCATNAME"   disabled/>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="投诉人员" prop="FUSER">
            <el-input v-model="dataForm.FUSER"   disabled/>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="投诉类别" prop="FBILLTYPE">
            <el-input v-model="dataForm.FBILLTYPE"  disabled />
          </el-form-item>
          </el-col>

        <el-col :span="16">
          <el-form-item label="投诉内容" prop="FMEMO">
            <el-input v-model="dataForm.FMEMO"  disabled />
          </el-form-item>
        </el-col>

      </el-form>
      </el-row>
     </el-card>
    </el-timeline-item>

    <el-timeline-item timestamp="处理说明" placement="top">
      <el-card>
      <el-row class="JNPF-common-search-box" :gutter="16">
      <el-form @submit.native.prevent ref="elForm" :model="dataForm" :rules="rules">
        <el-col :span="24">
          <el-form-item label="处理描述" prop="FNOTE2">
            <el-input
              type="textarea"
              :rows="2"
              placeholder="请输入内容"
              v-model="textarea2">
            </el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="处理人员" prop="FCHECKUSER2">
            <el-input v-model="dataForm.FCHECKUSER2"  disabled />
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="处理日期" prop="FCHECKDATA2">
            <el-input v-model="dataForm.FCHECKDATA2"  disabled />
          </el-form-item>
        </el-col>
        
        <el-col :span="5">
          <el-form-item label="">
            <el-button type="success" icon="el-icon-plus" @click="closePage">保存</el-button>
            <el-button type="primary" :loading="loading"  @click="closePage">取消</el-button>
          </el-form-item>
        </el-col>
      </el-form>
      </el-row>
      </el-card>
    </el-timeline-item>
  </el-timeline>
</div>

  </el-dialog>
</template>
<script>
  import jnpf from "@/utils/jnpf"
  export default {
    components: {  },
    props: {
      formationlist: {
        type: Array,
        default: [],
      },
    },
    data() {
      return {
        textarea: '调课导致无法按时到达',
        value1: new Date(2024, 12, 2, 12, 0),

        title: "新增",
        insertorupdate: true,
        dataForm: {
          FBILLNO: "K241130001", 
            FBILLCREDATE:"2024-11-29",
            FUSER: "刘阿斗",
            FPARENTNO: "第一教学楼",
            FLAYNO:"一楼",
            FCATNAME: "闵行春申小学",
            FUSEDATE: "2024-12-01",
            FBEGTIME:"09:00",
            FENDTIME:"11:00",
            FMEMO: "导游讲解不专业",
            FCHECKUSE: "",
            FCHECKDATE: "",
            FNOTE:"",
            FBILLTYPE:"导游",
            FBILLSTATE: "已受理",
            FUSER2:"曹植",
            FUSERDATE2:"2024-11-29 10:02:13",
            FCHECKNAME:"已审批"
        },
        rules: {
          FUSERNUMBER:[
            { required: true, message: '请输入学籍号码', trigger: 'blur' },
          ],
          FUSER: [
            { required: true, message: '请输入申请人员', trigger: 'blur' },
          ],
          FMEMO: [
            { required: true, message: '请输入申请理由', trigger: 'blur' },
          ],
        },
        list: [{  "FENTRYID":1,
                  "FGRAND": "第一实验楼",
                  "FLEVEL": "一楼",
                  "FPOINT": "201实验室"
                },
                { "FENTRYID":1,
                  "FGRAND": "第一实验楼",
                  "FLEVEL": "一楼",
                  "FPOINT": "202实验室"
                }],
        loading: false,
        visible: false,

        //所属校区选择数据
        options1: [{
          value: '1',
          label: '申请中'
        }, {
          value: '2',
          label: '已通过'
        }, {
          value: '3',
          label: '已驳回'
        }],

        //所属校区选择数据
        options2: [{
          value: '1',
          label: '未审批'
        }, {
          value: '2',
          label: '已审批'
        }, {
          value: '3',
          label: '已驳回'
        }],
        
      };
    },
    created() {
    },
    mounted() { },
    methods: {
      closePage(){
        console.log('关闭弹窗dialog');
        this.visible = false;
      },
      init(FBILLNO) {
        this.dataForm.FBILLNO = FBILLNO;
        if (this.dataForm.FBILLNO) {
          this.title = "修改"
          this.insertorupdate = false;
        }
        else {
          this.title = "新增"
          this.dataForm.FBILLNO = "K" + Math.floor(Math.random() * 10000000) + 1;
          this.insertorupdate = true;
        }
        this.visible = true;
      },
      shoplist(data) {
        data.forEach(item => {
          this.list.push({
            FBILLNO: this.dataForm.FBILLNO
            , FENTRYID: "1"
            , FYEAR: 2024
            , FGRADE: "大一"
            , FCLASS: "化学系1班"
            , FSTUDNAME: "曹操"
          },{
            FBILLNO: this.dataForm.FBILLNO
            , FENTRYID: "2"
            , FYEAR: 2024
            , FGRADE: "大一"
            , FCLASS: "化学系1班"
            , FSTUDNAME: "刘备"
          })
        });
      },
      //
      cancel() {
        this.list = [];
        this.visible = false;
      },
    },
  };
</script>